standAzLowBound = 0
standAzHighBound = 360
standAltLowBound = 0
standAltHighBound = 90

routeAzLowBound = 0
routeAzHighBound = 360
routeAltLowBound = 0
routeAltHighBound = 90



def runRoute(azLowBound, azHighBound, altLowBound, altHighBound):
	# Check AzLowBound
	if((azLowBound >= standAzLowBound) and (azLowBound <= azHighBound) and (azHighBound <= standAzHighBound)):
		routeAzLowBound = azLowBound
	else:
		routeAzLowBound = standAzLowBound

	# Check AzHighBound
	if((azLowBound >= standAzLowBound) and (azLowBound <= azHighBound) and (azHighBound <= standAzHighBound)):
		routeAzHighBound = azHighBound
	else:
		routeAzHighBound = standAzHighBound

	# Check AltLowBound
	if((altLowBound >= standAltLowBound) and (altLowBound <= altHighBound) and (altHighBound <= standAltHighBound)):
		routeAltLowBound = altLowBound
	else:
		routeAltLowBound = standAltLowBound

	# Check AltHighBound
	if((altLowBound >= standAltLowBound) and (altLowBound <= altHighBound) and (altHighBound <= standAltHighBound)):
		routeAltHighBound = altHighBound
	else:
		routeAltHighBound = standAltHighBound

	print "%i %i %i %i" % (routeAzLowBound, routeAzHighBound, routeAltLowBound, routeAltHighBound)


runRoute(1, 9, 2, 10)
runRoute(-1, 450, -2, 95)
runRoute(32, 24, 18, 36)
runRoute(0, 361, 0, 90)
